Not exactly sure if it is correct but p (number of pencils Sarahi has) added too the 2 more she finds, and then x3 (when she triples her amount). This is less then (<) what Damaris has (which is 40) so it would be p+2x3<40.
Again not sure if its completely correct, but i hope it helps :,)