I remember being taught this but I can't remember how to solve it. Can you explain how to get the answer??

I remember being taught this but I cant remember how to solve it Can you explain how to get the answer class=