Calculation of pH in acid base reaction This problem(from ionic equiibrium) states:

We are given $\pu{40 mL}$ of $\pu{0.1 M}$ $\ce{HCl}$ and $\pu{10 mL}$ of $\pu{0.45 M}$ $\ce{NaOH}$ in two separate beakers. These two solutions are mixed. Find the $\mathrm {pH}$ of the resultant solution formed.
Consider the concentration of the ions formed by self dissociation of water to be negligible.

My method
Number of moles of $\ce{H+}$ ion in the first solution is $\pu{0.004 mol}$ and the number of moles of $\ce{OH-}$ in the second solution is $\pu{0.0045 mol}$.
Now, after mixing the two solutions, the resulting concentration of $\ce{H+}$ ion becomes $\pu{0.08 M}$ and that of the $\ce{OH-}$ will become $\pu{0.09 M}$. Now these $\ce{H+}$ and $\ce{OH-}$ ions will react with each other such that the equilibrium constant of their reaction becomes $10^{-14}$.
So I formed the equation
$$(0.08-x)(0.09-x) = 10^{-14}$$
From here we can calculate $x$ and subsequently we can get the concentration of $\ce{H+}$ ion in the final solution.
I want to know is this the correct way to solve the problem?
The answer to this problem is given as $12$, which I doubt can be obtained from my way of doing the problem.
No, you should not do the problem your way.
Given
$$(0.08−x)(0.09−x)=10^{−14}$$
You can solve for $x$ here, but its value will be quite close to $0.08$. This is the only way to make the product a small number, by making the one of the multiplicands very small.
However, $x$ will be so close to 0.08 that will have trouble figuring out the value of $0.08 - x$, which is what you want. Therefore, the right answer is obscured by your method of solving the problem.
In this problem, you can work around that by calculating the pH value from the hydroxide ion concentration, which, by the argument above, will be roughly $0.01\ \mathrm{M}$, consistent with a pH of 12. However, in the most general case, you may not be able to do that to determine what the final equilibrium concentrations are.