Slice of Pizza is $3.20 and a drink is $1. U spent $10.60. Write and solve an equation " p" number of slices of pizza u brought.

1 answer

Let \( p \) represent the number of slices of pizza you bought.

The cost of \( p \) slices of pizza would be \( 3.20p \). Since a drink costs $1, if you bought \( d \) drinks, the cost for drinks would be \( 1d \) or simply \( d \).

The total amount spent was $10.60, so we can write the equation:

\[ 3.20p + d = 10.60 \]

To solve this equation, we need to express \( d \) in terms of \( p \) or find a specific number of drinks. Since drinks are typically purchased in whole numbers, we can rearrange the equation to find \( d \):

\[ d = 10.60 - 3.20p \]

Now, since \( d \) must be a non-negative whole number, the right side of the equation must also be a non-negative whole number. This implies:

\[ 10.60 - 3.20p \geq 0 \] \[ 10.60 \geq 3.20p \] \[ \frac{10.60}{3.20} \geq p \] \[ 3.3125 \geq p \]

Thus, the maximum integer value for \( p \) is 3. We will check whole numbers of slices (0, 1, 2, 3) to determine valid pairs of \( (p, d) \):

  1. If \( p = 0 \): \[ d = 10.60 - 3.20(0) = 10.60 \quad (not an integer) \]

  2. If \( p = 1 \): \[ d = 10.60 - 3.20(1) = 10.60 - 3.20 = 7.40 \quad (not an integer) \]

  3. If \( p = 2 \): \[ d = 10.60 - 3.20(2) = 10.60 - 6.40 = 4.20 \quad (not an integer) \]

  4. If \( p = 3 \): \[ d = 10.60 - 3.20(3) = 10.60 - 9.60 = 1.00 \quad (valid) \]

Based on these calculations, the only valid solution is \( p = 3 \) slices of pizza and \( d = 1 \) drink.

Therefore, you bought 3 slices of pizza and 1 drink.