CREATE TABLE finrev_fed_key_17 (state_code DECIMAL, state TEXT)
CREATE TABLE finrev_fed_17 (state_code DECIMAL, idcensus DECIMAL, school_district TEXT, nces_id TEXT, yr_data DECIMAL, t_fed_rev DECIMAL, c14 DECIMAL, c25 DECIMAL)
CREATE TABLE ndecoreexcel_math_grade8 (year DECIMAL, state TEXT, all_students TEXT, average_scale_score DECIMAL)

Which state spent the most revenue towards schools and whats the state average score
SELECT T2.state, T3.average_scale_score FROM finrev_fed_key_17 AS T2 JOIN finrev_fed_17 AS T1 ON T1.state_code = T2.state_code JOIN ndecoreexcel_math_grade8 AS T3 ON T2.state = T3.state GROUP BY T2.state ORDER BY SUM(T1.t_fed_rev) DESC LIMIT 1
SELECT "T2"."state", "T3"."average_scale_score" FROM "finrev_fed_key_17" AS "T2" JOIN "finrev_fed_17" AS "T1" ON "T1"."state_code" = "T2"."state_code" JOIN "ndecoreexcel_math_grade8" AS "T3" ON "T2"."state" = "T3"."state" GROUP BY "T2"."state" ORDER BY SUM("T1"."t_fed_rev") DESC NULLS LAST LIMIT 1