The Baltimore Ravens and rookie first-round pick Joe Flacco agreed to a five-year contract worth up to $30 million, agent Joe Linta said Wednesday night. The deal includes $8.75 million in guaranteed money.