Hi all,

I’m trying to get the following to run but it’s coming up wrong. If the dolphin (boolean) is true, then I need to divide the sharkSpeed by 2. Any ideas on how i would write this?

```
function shark(pontoonDistance, sharkDistance, youSpeed, sharkSpeed, dolphin){
dolphin = (sharkSpeed / 2);
let sharkTime = (sharkDistance / sharkSpeed);
let youTime = (pontoonDistance / youSpeed);
if (sharkTime < youTime) {
return "Shark Bait!";
} else if (youTime < sharkTime) {
return "Alive!";
}
}
// if dolphin is true then half the speed of the shark before doing sharkDistance / sharkSpeed
```