In a mayoral election, candidate X received 13 more votes than candidate Y, and candidate Y received 34 fewer votes than candidate Z. If candidate Z received 24,000 votes, how many votes did candidate X receive?