Use the previously posted equations, here is the procedure I would use
1. Determine relative molecular mass of the acid
2. Determine number of moles of the acid in two 500 mg tablets
3. Determine the concentration of the acid in the solution
4. using the pKa, determine the concentration of H+ ions in solution, [H+]
5. Determine pH