(b) No later than sixty days after service, the attorney general shall file with the court an answer that shall either admit that the petitioner is entitled to compensation or deny the petitioner's claim.
If the attorney general admits that the petitioner is entitled to compensation, the court shall conduct a trial to determine the amount of compensation; provided that if the attorney general and the petitioner agree on the amount of the compensation, the court may issue a final judgment awarding the petitioner the amount agreed upon or, in its discretion, conduct a trial to determine the amount to award the petitioner.
If the attorney general denies that the petitioner is entitled to compensation, then the court shall conduct a trial to determine if the petitioner is entitled to compensation and the amount, if any.