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.

.02p + .07c = 156

c = p+300

Sadie has $1 worth of nickels and dimes. She has twice as many nickels as dimes. Write a system of equations that could be used to determine the number of nickels and the number of dimes that Sadie has. Define the variables that you use to write the system.

Let's define the variables:

Let P be the dollar amount of phone sales Josiah made.
Let C be the dollar amount of computer sales Josiah made.

According to the given information:
1. Josiah had $300 more in computer sales than in phone sales: C = P + 300.
2. Josiah earned a 2% commission on the total dollar amount of all phone sales he made and a 7% commission on all computer sales:
0.02P + 0.07C = 156.

Thus, the system of equations can be written as:
C = P + 300
0.02P + 0.07C = 156.

Let's define:

- P as the dollar amount of phone sales Josiah made
- C as the dollar amount of computer sales Josiah made

We know that Josiah earns a 2% commission on phone sales and a 7% commission on computer sales.

The commission on phone sales would be 0.02P, and the commission on computer sales would be 0.07C.

According to the problem, Josiah had $300 more in computer sales than in phone sales, so we can write the equation:
C = P + 300

The total commission earned by Josiah is given as $156, so we can write the equation:
0.02P + 0.07C = 156

Therefore, the system of equations is:
C = P + 300
0.02P + 0.07C = 156