Testnet transaction c474c67cabc13f74c65e7cf503db971d5ba176794bff7de36f46d51ca675cf3a
locked 0.0005BTC with a simple math script:
OP_2DUP
OP_ADD
5102
OP_EQUALVERIFY
OP_SUB
230d
OP_EQUAL
Transaction b6714e05dd014cc92de09271886e62d85e7d41dd44fad417c520eb51d57f94c0
spent that output with the sigscript:
ba07
6985
I can't see how (ba07 + 6985) == 5102
or (ba07 - 6985) == 230d
.
What am I missing about Bitcoin script, integers, and math?