Learn Aramaic/Syntax/Whatever seems good
Whatever seems good
See how מָה דִי introduces a free relative clause, 'whatever', and how the imperfect יֵיטַב is followed by the infinitive לְמֶעְבַּד to express what is good to do.
A free relative with מָה דִי
The combination מָה דִי means 'whatever'. It opens a clause that is the object of the following verb. The imperfect יֵיטַב, 'it seems good', is then followed by the infinitive לְמֶעְבַּד, 'to do'. Marti describes such relative clauses as common in Aramaic.
The free relative clause
The clause begins with מָה דִי and ends with the verb יֵיטַב. It names whatever seems good to the brothers, and the rest of the verse tells what to do with the silver and gold.
The infinitive after the imperfect
The imperfect יֵיטַב is followed by the infinitive לְמֶעְבַּד, 'to do'. Together they express what is good to do with the rest of the silver and gold.
Check
What does the combination מָה דִי introduce?
What form follows the imperfect יֵיטַב?