Remember that the probability of an event is the number of times the event can happen divided by the number of possible event:
In this case, we have that the tray has 10 cakes, and 2 are strawberry. Then, the probability to randomly select a strawberry cake is: