I'll spoiler the one below ... if you can get the first, you should be able to get this one. I'm also making another assumption about your lack of parentheses.
pi ^ 2x = 5 ^ (1 - x)
ln pi ^ 2x = ln 5 ^ (1 - x)
2x ln pi = (1 - x) ln 5
2x ln pi = ln 5 - x ln 5
2x ln pi - x ln 5 = ln 5
x (2 ln pi - ln 5) = ln 5
x = ln 5 / (x ln pi - ln 5).
One more point -- the laws of logarithms apply to all bases, not just e. Although natural log is the intuitive choice for problem #1, you could clean up problem #2 by choosing to take the log base 5 of each side in the first step.
It SEEMS as if you are on the natural log section of whatever math book yer rolling with. Word to the wise: just remember those LAWS by heart. Once you get them... you'll find it much easier to apply them to many of the problems you'll be seeing in the next week or so.
It also gives you an outlet for when you find yourself going: SHIT WHAT NOW?!?!