Can't figure out this triangle geometry problem
First and last equality are because of triangle similarty ($BQF\sim BDC$ and $AEQ \sim ADC$) and in the middle because of Thales theorem (in angle through $Q$).
$$ {QF \over CD} = {QB\over DB} = {QA\over AC} = {EQ\over CD}$$