Priorities are based on atomic number. When two or more atoms attached are the same, you have to move to the next group out. So, in this case, you have O, H, and 2 C's. Obviously O gets priority 1 and H 4. For the two C's you look at what is attached to them. In one case you have CHH (this is for the methylene attached to the cyclopropyl). In the other you have CCH. The first C is a draw so the next atom counts; in one case you have a C, in the other an H. The C wins and the acyclic chain gets the 2nd priority. In the case of double and triple bonds you count the number of bonds to the atoms (e.g. -CH=CH2 counts as CCH).