Yep its a cool challenge, figured it out by hand, then just for the hell of it wrote a python script, took me a while to figure out how to convert 3 bit binary to decimal in python but i got there

i2c