SCHEMA:
CREATE TABLE table_name_39 (elected INTEGER, party VARCHAR, district VARCHAR)
USER:
Party of republican, and a District of 5th is what highest elected?

QUERY:
SELECT MAX(elected) FROM table_name_39 WHERE party = "republican" AND district = "5th"