also consider criterium for task 2 when calcualting solution for task 3

Signed-off-by: unknown <oshamoun@iaimz114.pc.uni-mainz.de>