One form, multiple rows and summary data

I'm trying to figure out a way to take my simple request form and turn it into a form that will populate multiple rows or at least be able to sort by request. These requests could have one item on the order or 10. I'd like to be able to see the total cost of the request as well, not just the cost of one of the items. I've included an example of how the output could look, but there might be a better way. The first request has 3 items on it, 2nd has 2, and 3rd has 1.