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?

number of rides on merry-go-round ---- x

number of rides on pirate ship ---- 8-x

solve .9x + .6(8-x) = 6.3
times 10

9x + 6(8-x) = 63

take it from here.

Let's assume Lily took x rides on the pirate ship.

Since Lily went for a total of 8 rides, the number of rides on the merry-go-round would be 8 - x.
The cost of x pirate ship rides would be 0.60 * x.
The cost of (8 - x) merry-go-round rides would be 0.90 * (8 - x).
According to the problem, the total cost of all rides was $6.30.
Therefore, we can set up the equation:
0.60 * x + 0.90 * (8 - x) = 6.30.
Now let's solve this equation to find x, the number of pirate ship rides Lily took.

To solve this problem, we need to set up a system of equations. Let's represent the number of pirate ship rides as "p" and the number of merry-go-round rides as "m".

From the problem, we know that Lily went for a total of 8 rides. So we have the equation:
p + m = 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 costs $0.90. Therefore, we can write another equation for the total cost:
0.60p + 0.90m = 6.30

Now, we can solve this system of equations:

To eliminate decimals, we can multiply the second equation by 100 to get:
60p + 90m = 630

Now, we can use the elimination method to solve for "p":
Multiply the first equation by 60 to get:
60p + 60m = 480

Subtract the above equation from the multiplied second equation:
(60p + 90m) - (60p + 60m) = 630 - 480
30m = 150

Divide both sides of the equation by 30:
m = 150 / 30
m = 5

Now, substitute the value of "m" back into the first equation to solve for "p":
p + 5 = 8
p = 8 - 5
p = 3

Therefore, Lily took 3 pirate ship rides.