Uiua
Pretty much just a transcription of my Dart solution.
Data β β(β(βββΈβ"0123456789")βΈβ @\n)βΈ(Β¬β¦·"\n\n")"Button A: X+94, Y+34\nButton B: X+22, Y+67\nPrize: X=8400, Y=5400\n\nButton A: X+26, Y+66\nButton B: X+67, Y+21\nPrize: X=12748, Y=12176\n\nButton A: X+17, Y+86\nButton B: X+84, Y+37\nPrize: X=7870, Y=6450\n\nButton A: X+69, Y+23\nButton B: X+27, Y+71\nPrize: X=18641, Y=10279"
IsInt β <0.00001β΅-β
.
AB β Γ·Β°ββ‘(/-ΓβΒ°β)β[0_1 2_1 0_2]
Cost β /+ΓIsInt.Γ3_1AB
&p /+β‘Cost Data
&p /+β‘(Costβ(β‘2|+1e13))Data