I am working through an exercise to show that $\langle p|x \rangle = Ae^{-ipx} $ using $[\hat{x},\hat{p}] = i $ alone. The first part of the exercise is to use the commutator and show that $$ e^{-ia\hat{p}} |x\rangle = |x+a\rangle $$
which I have been able to do. It then states that from this I can deduce what $ \langle p | x \rangle $ is. I have used the fact that $\hat{p}|p\rangle = p|p\rangle$, to show that
$$ \langle p |e^{-ia\hat{p}} |x\rangle = \langle p |e^{-iap} |x\rangle =e^{-iap}\langle p |x\rangle $$
and $$ \langle p |e^{-ia\hat{p}} |x\rangle = \langle p |x +a\rangle$$
to get
$$ e^{-iap}\langle p |x\rangle = \langle p |x +a\rangle $$
If I set $a = x$ I find
$$ e^{-ixp}\langle p |x\rangle = \langle p |2x\rangle $$
Now I don't know where to move from here. Any hints would be greatly appreciated!