A weak acid with a Ka of 4.0 x 10-4 is mixed with its sodium salt to form a solution that contains twice as many moles of the sodium salt than of the weak acid. What is the pH of the solution?