Josiah works at an electronics store as a salesperson. Josiah earns a 2% commission on the total dollar amount of all phone sales he makes, and earns a 7% commission on all computer sales. Josiah had $300 more in computer sales than in phone sales and earned a total of $156 in commission. Write a system of equations that could be used to determine the dollar amount of phone sales Josiah made and the dollar amount of computer sales he made. Define the variables that you use to write the system.

Josiah, a salesperson at an electronics store, earned a 2% commission on the total dollar amount of his phone sales and a 7% commission on all computer sales. Let x be the total dollar amount of phone sales and y be the total dollar amount of computer sales. We know that y is $300 more than x, which can be expressed as y = x + 300. Josiah earned a total of $156 in commission, which means 0.02x + 0.07y = 156. Hence, we can use this system of equations to determine the values of x and y, which represent the dollar amounts of phone and computer sales, respectively:

y = x + 300
0.02x + 0.07y = 156

Solving these equations simultaneously can give us the values of x and y.