URGENT!!!

Three friends, Cleopatra, Dalila, and ebony fo shopping. The money they have each is in the ratio

Cleopatra : Dalila : Ebony =
5 : 7 : 8

A) How many dollars do they have in total?

B) Dalila spends 12$ on a hat, how many dollars does she have left?