How do You Figure Ratios?

Ratio can have a few different meanings but it is usually used to compare two things. Like if you had 12 apples and 5 were red and 7 were green then your ratio of red to green would be 5/7 or sometimes it is written 5:7.