What is the total amount of money loaned by banks in New York state?
select sum(t2.amount) from bank as t1 join loan as t2 on t1.branch_id = t2.branch_id where t1.state = 'New York'