Could you plz show me how the formula for these problems work

R=1400 10% per year compounded quarterly for 8 years

Answer in the back of the book: 1st part $67,410.39 2nd part: $22,610.39

R=$800, 9% per year compounded monthly for 4 years

Answer in the back of the book: 1st part$46,016.57 2nd part $7616.57

The problems below are compounded annually

R=$1200 i= 0.075 n=8

Answer in the back of the book: 1st part $13475.82 2nd part $3875.82

R=$17,544 i=0.08 n=6

Answer in the back of the book: 1st part $138,997.66 2nd part $33,733.66