AMC 8 2026 (Problem 7)

Mika would like to estimate how far she can ride a new model of electric bike on a fully charged battery. She completed two trips totaling 40 miles. The first trip used 12\frac{1}{2} of the total battery power, while the second trip used 310\frac{3}{10} of the total battery power. How many miles can this electric bike go on a fully charged battery?
(A)  45\text{(A)}\;45(B)  48\text{(B)}\;48(C)  50\text{(C)}\;50(D)  52\text{(D)}\;52(E)  55\text{(E)}\;55