# I don’t know how to solve the last pieces

So, I almost finished a rubik’s cube, but the last 3 pieces are not in their places (green on red face, blue on green face, and red on blue face). Apart from these, the other faces are done.

How can I finish solving the cube?

• This was closed as a duplicate of a question about a situation where just two cubelets were swapped. It is not a duplicate of that question; here the permutation is a 3-cycle. I've reopened it. Apr 29 '19 at 16:09

If the three edge pieces you want to rotate are on the top layer at front, left and right, then the move $$F^2UM^{-1}U^2MUF^2$$ will permute them cyclically where $$F$$ means rotating the front face $$90^{\circ}$$ clockwise (so $$F^2$$ means rotating it $$180^{\circ}$$), $$U$$ means rotating the top (upper) face $$90^{\circ}$$ clockwise, and $$M$$ means rotating the vertical "middle slice" perpendicular to the front face $$90^{\circ}$$ towards you. See here for an animation.
This will move front $$\rightarrow$$ left $$\rightarrow$$ right $$\rightarrow$$ front which is actually the reverse of the direction you want; so either do it twice or do it backwards meaning $$F^2U^{-1}M^{-1}U^2MU^{-1}F^2$$. (Take the steps in reverse order, inverting each one, noting that e.g. $$F^2$$ is its own inverse.)