Think of many people in population meeting randomly, having your sought-after distribution of alleles. Let me denote by $a$ the fraction of people with allele $a$, and similarly for $b$ and $o$.
Suppose two people from the population meet. The rules for allele to blood type conversion imply the following (row is allele of one person, column is allele of the other person):
$$\begin{array}{cccc}
&a&b&c\\
a&\text{A}&\text{AB}&\text{A}\\
b&\text{AB}&\text{B}&\text{B}\\
o&\text{A}&\text{B}&\text{O}\\
\end{array}$$
If meeting probability is independent of allele and blood type, out of $100$ meetings, $40$ should be in cells with $\text{A}$, $11$ in cells with $\text{B}$, $45$ in cells with $\text{O}$ and $4$ in cells with $\text{AB}$. In terms of frequencies, these numbers are $40/100$, $11/100$, $45/100$ and $4/100$.
Your $a$, $b$ and $o$ fractions then imply following equations:
$$\begin{aligned}
\tfrac{40}{100}&=A=a^2+2oa\\
\tfrac{11}{100}&=B=b^2+2ob\\
\tfrac{40}{100}&=O=o^2\\
\tfrac{40}{100}&=AB=2ab\\
\end{aligned}$$
These are four equations with three variables so there is no guarantee it will have a solution. Since we are dealing with real-world data, your best hope is to solve for $a$, $b$, and $o$ using three of the equations and then check if the last one is approximately satisfied (you can try all possible combinations which one to leave out, but the results are insensitive to which one is left out). If I leave the last equation out and solve, I am getting $0.25$, $0.08$ and $0.67$ (after rounding).