problem 8 wip

working, but not getting proper calculation?