Mamadou and Brianna work at a dry cleaners ironing shirts. Mamadou can iron 15 shirts per hour, and Brianna can iron 25 shirts per hour. Mamadou worked 2 more hours than Brianna and they ironed 230 shirts between them. Write a system of equations that could be used to determine the number of hours Mamadou worked and the number of hours Brianna worked. Define the variables that you use to write the system.

Let's suppose Mamadou worked x hours and Brianna worked y hours.

From the problem, we know that Mamadou can iron 15 shirts per hour, so the number of shirts he ironed is 15x.

Similarly, Brianna can iron 25 shirts per hour, so the number of shirts she ironed is 25y.

According to the problem, Mamadou worked 2 more hours than Brianna, so the equation for the hours can be written as:

x = y + 2

And the total number of shirts ironed by Mamadou and Brianna together is 230, so:

15x + 25y = 230

Therefore, the system of equations can be written as:
x = y + 2
15x + 25y = 230

where x represents the number of hours Mamadou worked and y represents the number of hours Brianna worked.