You know you cannot lie so a simple iteration on inequalities is enough to find the right value.
This relies on your friend figuring out the linear addition scheme.
Reply on news.ycombinator.com