A high school band held a bake sale. The number of pies sold was four more than twice the number of brownies sold. The band sold a total of 10 pies and brownies. Write a system of equations to describe this situation.