In a code language, 'COW' is represented as '3719'. If 'C' is 3, 'O' is 15, and 'W' is 23, what is the code for 'PIG' where 'P' is 16, 'I' is 9, and 'G' is 7?
In a coding system, 'FISH' is represented as '614891'. If 'F' is 6, 'I' is 9, 'S' is 19, and 'H' is 8, what is the code for 'BIRD' where 'B' is 2, 'I' is 9, 'R' is 18, and 'D' is 4?