Ann, Carol, and Judy paid a total of $45 for their dinner at a restaurant. If Ann paid ~$\frac{2}{5}$~ of the total amount, Carol paid$17, and Judy paid the rest, what fraction of the total amount did Judy pay?

~$\frac{2}{9}$~

~$\frac{14}{45}$~

~$\frac{1}{3}$~

~$\frac{2}{5}$~

~$\frac{7}{15}$~