5.85 g of sodium chloride (NaCl) is dissolved in 250 mL of solution. Calculate the molarity of the solution and the mass percentage of the solute

Molatity = M = mol/L.

How many moles. That's grams NaCl/molar mass NaCl
How many liters. That's 0.250 L

mass percent = percent w/w = mass solute/100 g solution but you don't have enough information to calculate this.
You can calculate w/v or m/v; i.e., percent w/v = mass solute/100 mL. That is
5.85 g x (100 mL/250 mL) = ?