how to solve rise fall table