Consider the equation $$y=ax^2+b$$ passing through the points $(1, 4)$ and $(3, 12)$. We need to find $a$ and $b$.

**My approach**
Solving the related equations by elimination, $b = 3$ and $a = 1$, which satisfies the equation by putting the values in the equation. Is this answer correct?