Lily went for 8 rides at the county fair. Some rides were on the merry-go-round, and the rest were on the pirate ship. The total cost of all rides was $6.30. Each pirate ship ride cost $0.60, and each merry-go-round cost $0.90. How many pirate ship did Lily take?

X Rides on merry-go-round.

Y Rides on pirate ships.

Eq1: X + Y = 8 Rides.

Eq2: 0.9X + 0.6Y = 6.30.
Multiply Eq1 by -0.9:
-0.9X - 0.9Y = - 7.20.
0.9X + 0.6Y = 6.30.
Add the Eqs and get:
-0.3Y = -0.9,
Divide both sides by -0.3:

Y - 3 Pirate ship rides.

To find out how many pirate ship rides Lily took, we can set up a system of equations based on the given information.

Let's assume Lily went on x pirate ship rides and y merry-go-round rides.

From the problem statement, we know that the total number of rides is 8. So, our first equation is:

x + y = 8

We also know that the total cost of all rides was $6.30. Each pirate ship ride costs $0.60 and each merry-go-round ride costs $0.90. So our second equation is:

0.60x + 0.90y = 6.30

Now, we can solve this system of equations to find the values of x and y.

To make it easier, let's multiply the second equation by 10 to eliminate decimals:

6x + 9y = 63

Now, we can solve the system of equations:

1) x + y = 8
2) 6x + 9y = 63

Multiplying the first equation by 6, we get:

6x + 6y = 48

Subtracting this equation from the second equation, we can eliminate x:

(6x + 9y) - (6x + 6y) = 63 - 48
3y = 15
y = 15 / 3
y = 5

Substituting the value of y back into the first equation:

x + 5 = 8
x = 8 - 5
x = 3

Therefore, Lily took 3 pirate ship rides.