Learning What Matters: Probabilistic Task Selection via Mutual Information for Model Finetuning